package com.wind.trademark.chart.vo;

public class UUID {
	private static String keys="abcdefghijklmnopqresuvwxyz0123456789-";
	private static char[] gen() {
		char[] uuidArray=new char[38];
		for (int i = 0; i < uuidArray.length; i++) {

			uuidArray[i]=keys.charAt((int)(Math.random()*keys.length()));
		}
		uuidArray[0]='{';
		uuidArray[9]='-';
		uuidArray[13]='-';
		uuidArray[17]='-';
		uuidArray[19]='-';
		uuidArray[37]='}';
		return uuidArray;
	}
	public static void main(String[] args) {
		char[]  uuid=UUID.gen();
		for (int i = 0; i < uuid.length; i++) {
			System.out.print(uuid[i]);
		}
	}
}
